package com.atguigu.day13.teacher.c2;

public class Student {
    String name;
    static int age;

    static {
        System.out.println("静态代码块一");
        age = 20;
      //  name = "张三";
    }
    {
        System.out.println("普通代码块");
    }
    public Student() {
        System.out.println("Student 无参");
    }

    public Student(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
